
/*
 * GET home page.
 */

exports.index = function(req, res){
  console.log("session : " + req.session.username);
  if(req.session.username === undefined || req.session.username === null || req.session.username === 'null'){
    res.render('index', { title: '' });
  } else {
    res.redirect('/list');
  }
};